package org.itsolutions.javaBackup.gui.web.admin.view;

import org.itsolutions.javaBackup.gui.web.common.AStatefullView;
import org.itsolutions.javaBackup.gui.web.common.components.JBPanel;

import com.google.inject.Inject;
import com.vaadin.ui.ComponentContainer;

/**
 * 
 * @author Tomas Fecko
 */
public final class AdminMainView extends AStatefullView<AdminMainView> {

	@Inject JBPanel mMainContainer;
	
	@Override
	protected AdminMainView initOnce() {
		mMainContainer.setScrollable(true);
		mMainContainer.setStyleName("mainPanel");
		return this;
	}

	/**
	 * 
	 * @param pNewContent content
	 */
	public void setContent(ComponentContainer pNewContent) {
		mMainContainer.setContent(pNewContent);
	}
	
	@Override
	public ComponentContainer getMainContainer() {
		return mMainContainer;
	}
}




